package exotica.rs2.net.codec;

import java.util.logging.Logger;

import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.channel.ChannelPipelineCoverage;
import org.jboss.netty.channel.ChannelStateEvent;
import org.jboss.netty.channel.ExceptionEvent;
import org.jboss.netty.channel.MessageEvent;
import org.jboss.netty.channel.SimpleChannelHandler;

/**
 * @author Sir Tom
 *
 */
@ChannelPipelineCoverage("all")
public class ServerMessage extends SimpleChannelHandler {

	@Override
	public final void channelConnected(ChannelHandlerContext ctx,
			ChannelStateEvent e) {
		Logger.getAnonymousLogger().info(
				"channelConnected - " + ctx.getChannel());
	}

	@Override
	public final void channelDisconnected(ChannelHandlerContext ctx,
			ChannelStateEvent e) {
		Logger.getAnonymousLogger().info(
				"channelDisconnected - " + ctx.getChannel());
	}

	@Override
	public final void exceptionCaught(ChannelHandlerContext ctx,
			ExceptionEvent ee) throws Exception {
	}

	@Override
	public final void messageReceived(ChannelHandlerContext ctx, MessageEvent e) {
	}

}
